#ifndef WIDGET_SETUP_NETWORK_H
#define WIDGET_SETUP_NETWORK_H



#include "players.h"
#include "widget_setup.h"
#include "gui.h"
#include <sstream>



//! @brief Gui class for connecting to the server and setting parameters for network game
class network_setup_widget: public setup_widget
{

	Q_OBJECT

public:

	/** @brief Creates part of the gui
	*	@param parent Qt parent
	*	@param flags Qt flags
	*/
	network_setup_widget( QWidget* parent = 0, Qt::WindowFlags flags = 0 );
	

private:

	//! widget layout
	QVBoxLayout* layout;
	//! input field for game server IP address
	QLineEdit* connect_i;
	//! connect button
	QPushButton* connect_b;
	//! load saved objects button - can be pressed when connected to the server
	QPushButton* next_b;
	

private slots:

	//! @brief Qt slot that jumps to buy screen
	void next();
	//! @brief Qt slot that establishes client-server connection
	void connect_server();

};



#endif